home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 801_900 / DISK0873 / DISK0873.ZIP / BOSS_SUP.LZH / REV.HST < prev    next >
Text File  |  1990-06-16  |  32KB  |  681 lines

  1. /*
  2. ** WINDOWS - Simple but Elegant Window Functions 
  3. **           (Datalight, Lattice, CI86, Microsoft, Borland
  4. **            Zortech, Mix PowerC, Manx AZTEC C, WATCOM)
  5. **
  6. ** Copyright (c) 1984 - 1990 - Philip A. Mongelluzzo
  7. ** All rights reserved.
  8. **
  9. ** Revision History in reverse order:
  10. **
  11. **  The following changes were incorporated in the 07.01.90 release:
  12. **
  13. **  06.16.90 -  Cosmetic and misc changes: (BOSSDEMO.C,
  14. **              MAKELIB.BAT (LC6), include memory model directives
  15. **              for Lattice 6.XX batch files).           
  16. **              Thanks again to Bill Hinkle.            (V5.17)
  17. **
  18. **              QuickC 2.5 Support.                            
  19. **
  20. **              MSC 6.0 Support.  Changed "windows.h" to CAST
  21. **              NULL as an int.
  22. **              (windows.h)                                    
  23. **
  24. **  04.04.90 -  wn_help was taught to use wn_putsa to enforce user
  25. **              specified help screen attributes.  Tip of the hat
  26. **              to Chris Madsen.
  27. **              (wn_help.c)                             (V5.16)
  28. **
  29. **  03.23.90 -  Added "wns_escape". This is set to TRUE by wn_input
  30. **              whenever ESCAPE has terimated the input.  ESCAPE
  31. **              now terminates input for all input field types.
  32. **              (wn_gbool, wn_gdate, wn_double, wn_gfloat, wn_gphone)
  33. **              (wn_gtime, wn_guint, wn_gulong, wn_gint)
  34. **              Thanks Dexter!!                         (V5.15)
  35. **
  36. **  03.12.90 -  Due to popular request, wn_open now range checks
  37. **              the window parameters to make sure that the window
  38. **              will actually fit on the screen.  NULL is returned
  39. **              if not.  This will prevent some cockpit "bad handle"
  40. **              error exits.
  41. **              (wn_open.c)                             (V5.14)
  42. **
  43. **  03.08.90 -  Added wn_hlinit, wn_help, wn_popup, and wn_qpopup.
  44. **              These functions are close clones to the old sample
  45. **              code provided in help.c and popup.c.  HELP.C and
  46. **              POPUP.C will no longer be distributed.
  47. **              (wn_help.c, wn_popup.c, windows.h)
  48. **              (genindex.c)                            (V5.13)
  49. **
  50. **  03.07.90 -  Placed all "externals" in "windows.ext".  This is
  51. **              being done to ease the burden of making changes
  52. **              to both global and external data.  This will also
  53. **              keep all the constants in one place.
  54. **              (windows.c, windows.h, windows.ext)     (V5.12)
  55. **
  56. **  03.06.90 -  HELP Key is now user definable.  The global wns_hkey
  57. **              has been added and defaults to F1.  This global
  58. **              can be set directly of via the wn_shkey() function.
  59. **              (windows.c, wn_init.c)                  (V5.11)
  60. **
  61. **  03.04.90 -  Added wn_stitle (Supertitle).  wn_stitle provides
  62. **              (top, bottom) (centered, left, right) titles!
  63. **              wn_stitle.c                             (V5.10)
  64. **
  65. **  03.03.90 -  Added wn_gatext - get ascii (ANY ascii text).
  66. **              Now you can input graphics characters!
  67. **              Tnx to Werner Schonber for the suggestion.
  68. **              wn_gtext.c                              (V5.09)
  69. **
  70. **  03.01.90 -  Fine tuned overlap detection to improve performance.
  71. **              wn_activ.c                              (V5.08)
  72. **
  73. **  02.25.90 -  Shadow window support. wn_activ.c, wn_close.c,
  74. **              wn_move.c, windows.h, windows.c, wn_open.c 
  75. **                                                      (V5.07) 
  76. **
  77. **  02.24.90 -  Eliminated most of the assembler functions.  This
  78. **              was done to provide better support for the HUGE
  79. **              memory model.
  80. **              (c:{wn_bios, wn_mouse, wn_sup}, *.asm)  (V5.06)
  81. **
  82. **  02.04.90 -  Linked exploding windows to time of day clock.
  83. **              Added wns_gticks() in wn_open.c.
  84. **              nap() in BOSSDEMO now uses wns_gticks.
  85. **              (wn_open.c)                             (V5.05)
  86. **
  87. **  02.03.90 -  wn_sdelspc was not handling requests to delete 
  88. **              trailing and leading spaces from strings that were
  89. **              only spaces!  Tnx es a tip-o-de-hat to Pat Elam,
  90. **              M. G. F. Gilliland, M.D., and Harold Jackson.
  91. **              (wn_string.c)                           (V5.04)
  92. **
  93. **  01.28.90 -  wns_movscr was not allowing for 132 column or
  94. **              wider screens.  It was taught how to allocate memory 
  95. **              for user defined physical screen sizes.  Thanks to the
  96. **              folks at Atomic Energy of Canada LTD. 
  97. **              (wn_sup.c)                              (V5.03)
  98. **
  99. **           -  v_cls() in "wn_bios" was taught about wni_mxrows 
  100. **              and wni_mxcols. 
  101. **              (wn_bios.c)                             (V5.02)
  102. **
  103. **  01.20.90 -  Pulldown code in BOSSDEMO would not work if called
  104. **              twice.  The problem was traced to the "winopn" member
  105. **              of the static structure mainbar.  Setting "mainbar.winopn"
  106. **              to FALSE before "wn_close(mainbar.wpsave)" in "pddemo()"
  107. **              solves the potential problem.  Thanks to Russ Brown for
  108. **              reporting the problem. 
  109. **              (bossdemo.c)                            (V5.01)
  110. **
  111. **              Version conversion table:
  112. **              
  113. **                   Base Release    Base Version
  114. **                      ??.??.86        1.00
  115. **                      ??.??.87        2.00
  116. **                      ??.??.88        3.00
  117. **                      ??.??.89        4.00
  118. **                      ??.??.90        5.00        
  119. **
  120. **  The following changes were incorporated in the 02.15.90 release:
  121. **                         AKA Version 5.00
  122. **
  123. **  01.10.90 -  WCVLIB.ASM created.  This file contains the assembly 
  124. **              language routines for WATCOM 7.0.  Previous versions of
  125. **              WATCOM should use MSVLIB.ASM.  
  126. **
  127. **  01.05.89 -  Physical windows wider than 80 columns were not 
  128. **              working correctly.  Thanks to all who reported this
  129. **              problem. (wn_actic.c, wn_sup.c, windows.c, wn_init.c).
  130. **              The constant "4096" was not removed in wn_savres. It
  131. **              does not impact the physical sceen size logic but does 
  132. **              allow the code of those who have "tinkered" with video 
  133. **              pages to continue to work.
  134. **
  135. **  12.22.89 -  Re-assembled all assembly language routines to insure
  136. **              that wni_mxcols, wni_mxrows, and wni_mxneed were being
  137. **              used correctly.
  138. **
  139. **  11.30.89 -  ZORTECH 2.0 Support.  Please note that ZORLIB version
  140. **              2.0 can not create a usable LWIN.LIB.  Microsoft's LIB
  141. **              works fine and should be used.  ZORTECH has been notified
  142. **              of the problem.
  143. **
  144. **  11.24.89 -  jeesh... One line exploding windows exploded again!
  145. **              This time we got the gremlin!! Tnx to Michael Canfield
  146. **              for suppling the test case.
  147. **
  148. **  (11.15.89)  **
  149. **
  150. **  10.28.89 -  Modified wn_title to insure ALL compiliers process
  151. **              hex values that are imbedded into the title properly.
  152. **              (e.g. "Hello \xcd There!")
  153. **              Thanks to Don Wahl for pointing out the discrepancy.
  154. **
  155. **  10.25.89 -  It would appear that the PC/PC_CLONE BIOS can not deal 
  156. **              with scrolling single line windows.  wn_insrow() was taught 
  157. **              to erase single line windows and avoid using the 
  158. **              BIOS for this special case.  This problem does not exist
  159. **              on AT or PC/2 class machines.  Thanks to Harold Jackson
  160. **              for reporting the problem.
  161. **
  162. **  10.24.89 -  Eliminated a potential multiple cursor problem with
  163. **              the mouse cursor when a window is being saved/restored
  164. **              with an active mouse.  Tip of the hat to Steve Thatcher
  165. **              of Attachmate.
  166. **
  167. **  10.20.89 -  Corrected a bug in wn_open to allow 1 line exploding 
  168. **              windows to function properly.  Thanks to John F. La Fleur 
  169. **              for reporting the problem.
  170. **
  171. **              wn_puts was not handling borderless windows properly.
  172. **              Thanks to Tim Keane for reporting the problem.
  173. **
  174. **              Lattice Version 6.0 Support
  175. **
  176. **  09.27.89 -  Logic was added to wn_input to insure that user supplied
  177. **              non null editing buffers are the same lenth as their masks!
  178. **              This logic will prevent garbage from appearing when 
  179. **              wn_input is called to peform data entry with a prefilled
  180. **              value in the user buffer (ubuff).
  181. **
  182. **  09.05.89 -  The forms package now treats the ESCcape
  183. **              like most common applications do.  That is to say that it 
  184. **              causes the current operation to cease.  Current 
  185. **              Window BOSS users please note that this feature can
  186. **              be disabled by removing the code in wn_frmget that contains
  187. **              "ESC.001" as part of the comments.
  188. **
  189. **  09.05.89 -  Added 1st character sensitivity to the sample popup menu
  190. **              code. ** NOTE ** -> For menu's that have different 1st
  191. **              character picks.  
  192. **              
  193. **  (08.25.89)  **
  194. **
  195. **  08.23.89 -  Exploding window opens were failing on SOME 
  196. **              adapters.  Even size exploding windows were
  197. **              failing. Corrected!
  198. **              Thanks to Richard Allen for his assistance.
  199. **
  200. **  The following changes were incorporated in the 07.01.89 release:
  201. **
  202. **  06.17.89 -  Lattice 3.41!! ... The version release race is on!
  203. **
  204. **  05.29.89 -  Mix Power C 1.30 Support.  
  205. **
  206. **  05.25.89 -  Added wn_gutext and wn_gltext.  Get upper case only
  207. **              and lower case only text functions.  Thanks to
  208. **              Charlie Munao for the suggestion.  Improved code 6/6/89.
  209. **
  210. **  05.23.89 -  wn_frmcls now sets the form pointer to the form being
  211. **              closed to NFRM and the individual field pointers to
  212. **              NFLD. This should help those who attempt to dectect
  213. **              if a form/field is active.        
  214. **
  215. **  05.10.89 -  wn_close now sets the window pointer to the window 
  216. **              being closed to WNLPTR.  This should help those who
  217. **              attempt to detect if a window is open.
  218. **
  219. **           -  Moved definition of FAR MEMORY marcos from "wn_sup.c"
  220. **              and "wn_activ.c" to "windows.h".
  221. **
  222. **  05.06.89 -  By popular request... WN_FRMGET now displays both the
  223. **              field prompt and data entry mask for all fields prior
  224. **              to accepting input for the 1st field.  Accomplished by
  225. **              introducing "wni_frmflg" which is used/tested by
  226. **              all the data entry functions, wn_input, and wn_frmget.
  227. **
  228. **  05.05.89 -  Exploding window logic was tweeked to provide smoother
  229. **              explosions.  
  230. **
  231. **  05.04.89 -  Incorporated support for user defined PHYSICAL screen
  232. **              size.  New globals: wni_mxrows, wni_mxcols, wni_mxneed.
  233. **              Globals are defined in "windows.c" and are referenced in
  234. **              "windows.h".  The globals are max rows, max cols, and max
  235. **              memory required to save a *complete* screen image (rows *
  236. **              col * 2).  A new version of wn_init, wn_psinit has be
  237. **              provided to properly set the globals.  Refer to the manual
  238. **              for a complete discussion.  The defaults are 25, 80, and 
  239. **              4000.  Usefull for applications and/or systems that run
  240. **              in 43 line EGA or 50 line VGA mode.  Since The BOSS
  241. **              assumes the screen size to be fixed, wn_psinit must be
  242. **              called before ANY windows are opened.
  243. **
  244. **  04.30.89 -  v_kstat now returns TRUE rather than (-1). This conforms
  245. **              to the constant in "windows.h".  Thanks to Clive Basson
  246. **              at Infostat!
  247. **
  248. **           -  wns_dput (internal routine) was modified to call
  249. **              wns_savres for all writes.  This will improve
  250. **              normal screen output (speed) in most cases.
  251. **
  252. **           -  wns_drow (internal routine) now calls wns_savres 
  253. **              for all writes. This will improve normal screen 
  254. **              output (speed) in most cases.
  255. **
  256. **           -  wn_title now calls wn_dput to write title for 
  257. **              faster title writes.
  258. **
  259. **  04.15.89 -  wn_gulong corrected to use common "%lu" .vs. "%U"
  260. **
  261. **  04.05.89 -  Watcom 7.0 Support.  Tip of the hat to the folks at
  262. **              the Watcom Compiler factory... Once again, they proved
  263. **              that you can release a MAJOR upgrade without breaking
  264. **              anybody's hard work (code).
  265. **
  266. **  04.04.89 -  Lattice 3.4X support. (LC3) Tip of the hat to
  267. **              William Hinkle & Jon Martin (UNISYS) for thier comments,
  268. **              suggestions and support.
  269. **
  270. **           -  Float/Double promotion & demotion caused wn_gfloat 
  271. **              trouble.  Resolved with #if LC3 in wn_gfloat. (LC3)
  272. **
  273. **           -  windows.h was modified to eliminate warnings 
  274. **              about undefined control blocks and include
  275. **              stdlib.h for proper memory allocation
  276. **              prototypes. (LC3)
  277. **
  278. **           -  Fixed LCP.BAT, APMODEL.BAT, and ADMODE.BAT (LC3)
  279. **
  280. **           -  Eliminated *true* unreferenced variables. (LC3)
  281. **
  282. **  03.11.89 -  Quick C Version 2.0 support. 
  283. **
  284. **  03.10.89 -  wn_frmopn/cls was tweeked to be a bit smarter about
  285. **              memory allocation & deallocation.  Tip of the hat
  286. **              to Barry Roomberg & Peter Spreadborough.  This 
  287. **              solves the *very* random "NULL POINTER" message
  288. **              on exit. 
  289. **
  290. **  The following changes were incorporated in the 02.01.89 release:
  291. **
  292. **  02.01.89 -  Mouse support, get double, get unsigned long,
  293. **              get password, left justify string, right justify string
  294. **              center string, delete leading and/or trailing blanks.
  295. **              Files: wn_mouse.c, wn_string.c, wn_gpword.c
  296. **              Files: wn_gdouble.c, wn_gulong.c
  297. **
  298. **  12.26.88 -  wn_restore was modified to allow for those who like to
  299. **              diddle with a "wn_save"d screen image.  This also 
  300. **              corrected a potential problem with restoring saved 
  301. **              images.  Thanks to Mike Blaszczak for reporting the
  302. **              conflict.
  303. **
  304. **  08.01.88 -  added #if __TURBOC__ to windows.c
  305. **
  306. **  The following changes were incorporated in the 08.15.88 release:
  307. **
  308. **  07.24.88 -  wn_puts() was not fixing up color attributes on mono
  309. **              systems - corrected.
  310. **
  311. **  07.10.88 -  AZTEC "C" support.  Thanks to Dexter McCloud for his
  312. **              assistance.
  313. **
  314. **           -  help() has been modified to be compatiable with
  315. **              AZTEC.  Please take note as format of the ".hlp" file
  316. **              has changed. Refer to Intelc.hlp for examples.
  317. **
  318. **  07.03.88 -  WATCOM "C" support.
  319. **
  320. **           -  smartened up wn_frmopn() & wn_frmcls() to avoid
  321. **              possible NULL Pointer Assignments.
  322. **
  323. **           -  cleaned up pointer conversion warnings in wn_activate,
  324. **              wn_close, wn_open, wn_restore, wn_save. defined
  325. **              WNLPTR in windows.h.
  326. **            
  327. **           -  eliminated various warning messages during compilation,
  328. **              Lattice still complains for no valid reason on a few
  329. **              modules.
  330. **
  331. **           -  wns_alloc now use runtime routines allocating memory
  332. **              in the large model, dos routines in small code models.        
  333. **
  334. **           -  wns_alloc allocates and immediately frees all available 
  335. **              memory in the small data memory models before allocating far 
  336. **              memory. This eliminates memory mgmt clashes for some
  337. **              compilers.  
  338. **
  339. **           -  eliminated the need for "peek.c"
  340. **
  341. **  06.29.88 -  Corrected wn_activate to always fixup the cursor
  342. **              display for the activated window.  Thanks to
  343. **              John P. Toscano for reporting the problem.
  344. **
  345. **  06.12.88 -  Functions in wn_activate & wn_sup that call _vidblt
  346. **              and xferdata were taught how to deal with variable
  347. **              offsets from wns_alloc.  
  348. **
  349. **  The following changes were incorporated in the 06.01.88 release:
  350. **
  351. **  06.01.88 -  Incoporated data entry routines!
  352. **
  353. **              Smartened up wn_puts on border detection.
  354. **
  355. **  05.14.88 -  Added: wn_putc  (window put character)
  356. **                     wn_putca (window put character & attribute)
  357. **              Both can be found in the WN_PUTS.C file.          
  358. **
  359. **  05.10.88 -  wn_dmode was now properly sets PAINT & FLASH modes for
  360. **              EGA video adapters - Thanks to Mike Gross from
  361. **              West Germany
  362. **
  363. **  The following changes were incorporated in the 05.06.88 release:
  364. **
  365. **  05.06.88  - Support for MIX Power C added. - Tip of the hat to
  366. **              Bob Lewis for his assistance.
  367. **
  368. **  04.27.88  - The declaration of _stklen was removed from BOSSDEMO.C,
  369. **              this will keep Turbo C happy.
  370. **
  371. **  03.22.88  - wn_activate ability to detect window overlap and
  372. **              handle borderless windows was improved.
  373. **
  374. **  03.22.88  - popup was taught how to handle text on the 0th line.
  375. **
  376. **  03.19.88  - v_spage was loading BH instead of AL. Thanks to
  377. **              Ross Schaach (TRAX, Corp.)
  378. **
  379. **  02.10.88  - wn_gets was modified to insure that charcters being
  380. **              echoed stay within the window borders.  Thanks to
  381. **              Dave McCracken for the suggestion.
  382. **
  383. **  01.14.88  - static declarations of filbuf and showpage were removed
  384. **              in help.c
  385. **
  386. **  The following changes were incorporated in the 11.20.87 release:
  387. **
  388. **  11.13.87  - Microsoft Ver 5.0 & Quick C Support
  389. **
  390. **  09.21.87 - wn_activate was occasionally incorrectly determining
  391. **             window overlap.  Thanks to the folks at Datalight
  392. **             and Marden Marshall for reporting the problem and supplying
  393. **             test cases.
  394. **
  395. **  09.17.87 - wn_init() and wn_exit() were modified to work around
  396. **             Turbo C's inability to handing allocating far memory
  397. **             in the large model.
  398. **
  399. **  09.07.87 - wns_push(), wns_pop(), wn_activate(), wn_move(),
  400. **             wns_image(), and wns_blt() were modified to use a table
  401. **             of global segments, offsets, and pointers.
  402. **             This was done to support the wn_init() and wn_exit()
  403. **             functions.  
  404. **
  405. **             wn_init() and wn_exit() added.  wn_init() must be the
  406. **             first window fucntion called and it must only be called
  407. **             once.  It works in conjucntion with wn_exit() to insure
  408. **             that the screen image on application entry is restored
  409. **             to the "T" on application exit.  wn_exit() must be the 
  410. **             last window function called.  One can not be used without
  411. **             the other.  Both should be used but are neither are
  412. **             required.
  413. **
  414. **  09.05.87 - wn_delrow was calling v_locate with args reversed
  415. **             causing the wrong section of the screen to be cleared
  416. **             on single line borderless windows.  Thanks to Paul
  417. **             Stephenson of Rockwell International for reporting both
  418. **             the problem and the cure.
  419. **
  420. **  09.03.87 - All assembler routines in DLVLIB.ASM now save/restore
  421. **             the SI & DI registers.  Datalight 3.10 and later 
  422. **             specific. The -w and -p command line parameters must
  423. **             be used when compiling The Window BOSS source code
  424. **             under Datalight 3.10 and later.
  425. **
  426. **  The following changes were incorporated in the 08.22.87 release:
  427. **
  428. **  08.10.87 - Added wns_dmode() to set the display mode.  
  429. **             wns_dmode(PAINT) sets the window display mode to paint
  430. **             style, wn_dmode(FLASH) sets the display mode to 
  431. **             flash style.  This function eliminates the need to set
  432. **             wn_sbit and wns_mtflg to produce the desired effects.
  433. **
  434. **  07.17.87 - wn_puts() & wn_putsa() perform simple range checking to
  435. **             insure that the string being displayed is/stays within
  436. **             the target window.
  437. **
  438. **  06.22.87 - Let's "C" specific code removed. Support will continue
  439. **             for previous versions but Mark William's products will
  440. **             not be supported in this or future releases.  This
  441. **             action is being as the result of compiler limitations.
  442. **
  443. **  06.17.87 - wn_activate now does INSTANT screen updates. Ditto
  444. **             for wn_move.  wn_mtype() returns 1 for EGA.  
  445. **             BLAZING screen updates on EGAs.
  446. **
  447. **  06.07.87 - wns_wtext() was incorrectely computing the offset for
  448. **             windows with wn_wrap enabled!
  449. **
  450. **  The following changes were incorporated in the 06.04.87 release:
  451. **
  452. **  06.03.87  - Support for BORLAND Turbo C!!
  453. **
  454. **  The following changes were incorporated in the 05.12.87 release:
  455. **
  456. **  05.12.87  - wns_text was incorrectly compensating for single line
  457. **              borderless windows (Attachmate follow up).
  458. **
  459. **  05.04.87  - EXPLODING windows are now supported!! Simply add 800 to
  460. **              the video page when calling wn_open()!
  461. **
  462. **            - Calls of the form wn_insrow(wn,0) and wn_delrow(wn,0) 
  463. **              caused the border to be klobbered.  wn_insrow() and
  464. **              wn_delrow() were taught about borders.
  465. **
  466. **  03.31.87  - wn_printf [wns_wtext()] was incorrectly displaying graphics 
  467. **              characters. Thanks to Mark MacGee for reporting the problem.
  468. **
  469. **  03.23.87  - Attachmate reported that wn_gets was doing funny things
  470. **              on single line bordered windows on PCs and PC clones but
  471. **              was fine on ATs and AT clones!  It would appear that the
  472. **              PC/PC_CLONE BIOS can not deal with scrolling single line
  473. **              windows.  wn_delrow() was taught to erase single line
  474. **              windows and avoid using the BIOS for this special case.
  475. **
  476. **  03.19.87  - Argh!! Datalight elected to use M_I86 as a predefined
  477. **              equate.  References to M_I86 were changed to 
  478. **              MSCV3 | MSCV4. (Datalight 3.XX)
  479. **
  480. **  The following changes were incorporated in the 03.15.87 release:
  481. **
  482. **  03.01.87  - wn_activate was incorrectly computing the coordinates of
  483. **              unbordered windows.  Thanks to Peter Fletcher for reporting
  484. **              the problem and supplying a solution.
  485. **
  486. **  01.22.87  - wn_dborder() was using the wrong attribute (wn-style,
  487. **              instead of wn->bstyle). Thanks to Peter Partch for
  488. **              reporting the problem and supplying a solution.
  489. **
  490. **  01.06.87  - wn_activate was not walking through the current linked 
  491. **              list of windows. In rare cases this would cause two
  492. **              windows to be considered non-overlapping when in fact
  493. **              they were.  Thanks to Robert Klotz for reporting the
  494. **              problem.
  495. **
  496. **  The following changes were incorporated in the 01.01.87 release:
  497. **
  498. **  12.19.86  - Removed a needless call to wn_err(wn,"wn_printf") in
  499. **              wn_title().
  500. **
  501. **  12.16.86  - Improved centering logic for window titles.
  502. **              Thanks to Steve Liberty for suggesting the change.
  503. **
  504. **  12.14.86  - Incorporated compiler specific equates in windows.h.
  505. **
  506. **  12.13.86  - wns_mtype() returns 0 for mode 3, 2 for mode 0 or 2,
  507. **              and 7 for mode 7. (Internal Use - This change allowed
  508. **              for the prevention of blue on black characters when
  509. **              the video mode is 2 and a color monitor is in use.
  510. **              (wns_fixc & wns_mtype).
  511. **
  512. **            - BASIC support for Mark Williams "Lets C".
  513. **
  514. **            - Tightend free() checks in wn_activate, wn_close, and
  515. **              wn_restore.
  516. **
  517. **  12.12.86  - wn_puts() was not adding the original physical cursor
  518. **              location to the logical cursor location. 
  519. **              Thanks to Marek Glowacki for reporting the problem.
  520. **
  521. **  12.10.86  - Allow v_locate() to position the cursor slightly off
  522. **              the screen.  Previous limit was (24,79) current limit
  523. **              is (25,80) which is just beyond the edge of the screen.
  524. **              This was done to insure that hidden cursors remain out
  525. **              of view.
  526. **
  527. **            - Improved cursor handling when wn_dmaflg = FALSE.
  528. **
  529. **  12.09.86  - Taught wn_activate to honor cursor position of window
  530. **              being activated. This will insure the cursor is always
  531. **              in the right logical and physical position. 
  532. **              More cosmetic enhancement than logic error correction.
  533. **
  534. **  The following changes were incorporated in the 12.01.86 release:
  535. **
  536. **  11.28.86  - Reverse video attribute was not being set correctly
  537. **              on MGAs - corrected.
  538. **
  539. **  11.19.86  - wn_dborder was incorrectly computing the row offset.
  540. **              Thanks to Steve Thatcher for reporting the problem.
  541. **              
  542. **  11.16.86  - Added ".smeth" member to window control block. This 
  543. **              member defines the scrolling method to be used in
  544. **              the window. It can be set to BIOS or DMAS, the default
  545. **              is DMAS.  
  546. **
  547. **            - All routines that reference wn_activate will return
  548. **              NULL if the window could not be activated.  This is 
  549. **              usually due to a lack of free memory.
  550. **
  551. **  The following changes were incorporated in the 11.14.86 release:
  552. **
  553. **  11.13.86  - Closing windows in random order when exiting "sometimes"
  554. **              produced null pointer assignment error messages or 
  555. **              incorrect screen images - corrected.
  556. **
  557. **            - wn_natrib() was not storing the newly defined window
  558. **              attribute in the window control block - corrected.
  559. **
  560. **  11.09.86  - Support for Datalight C added.
  561. **
  562. **  11.02.86  - v_border() added.  Allows color of border area to be
  563. **              set on CGAs with color monitors.
  564. **
  565. **  11.01.86  - wn_fixcsr was not adding the original physical cursor
  566. **              location to the logical cursor location. 
  567. **              Thanks to Bill Harts for reporting the problem.
  568. **
  569. **            - wn_puts was computing the virtual cursor location
  570. **              incorrectly. Thanks to Eric Lundstrom!
  571. **
  572. **            - Logic to dectect null strings was incorporated into
  573. **              _vidblt.  This will prevent 64k worth of trash from
  574. **              being blitted to the video ram.
  575. **
  576. **  10.30.86  - All references to MSC in "windows.h" were changed
  577. **              to M_I86.  This forces "windows.fns" to be included
  578. **              under Microsoft C.  This change was also applied to
  579. **              "windows.c".
  580. **
  581. **  10.26.86  - Full float, long, etc. support for wn_printf in
  582. **              all Lattice versions.  Microsoft 3.XX is the only
  583. **              one in the dark ages.
  584. **
  585. **  10.23.86  - Tip of the hat to Russ Thackson for the improved
  586. **              overlaping window detection technique incorporated
  587. **              in wn_activate().
  588. **
  589. **  The following changes were incorporated in the 10.22.86 release:
  590. **
  591. **  10.22.86  - wn_activate() was causing unnecessary window 
  592. **              thrashing on non-overlapping windows. Corrected.
  593. **
  594. **  The following changes were incorporated in the 10.10.86 release:
  595. **
  596. **  09.27.86  - Tiled windows are now supported! wn_activate() added.
  597. **
  598. **            - wn_gets() was not calling wns_err - corrected.  This
  599. **              was not a bug, just continued support for wild pointer
  600. **              checks.
  601. **
  602. **  09.25.86  - New logic for vidblt(). Fast mode now works on color
  603. **              without causing snow or flicker!!  Video updates now 
  604. **              occur at the fastest possible speed!  The effect of
  605. **              wn_sbit now conforms exactly to the description in the
  606. **              manual.
  607. **
  608. **            - wn_printf (CI86) now has full float support. Thanks
  609. **              to Rob Sullivan for reporting the CI86 problem. Lattice
  610. **              and MSC Version 3.0 are the only hold outs for full
  611. **              wn_print support.  MSC Version 3.0 support will never
  612. **              be incorporated. If you are using MSC Version 3.00 
  613. **              you will have to upgrade to Version 4.XX.  The price
  614. **              of the update is well worth it. Version 4.00 is a
  615. **              work of art! Lattice support will be delayed until
  616. **              Lattice gets around to supporting vsprintf() as
  617. **              defined by the evolving ANSI standard.
  618. **
  619. **  09.17.86  - seperate modules to decrease memory overhead.
  620. **
  621. **            - link list support (wn_open,wn_close,WINDOWPTR struct)
  622. **              This is the ground work for tiled window support.
  623. **
  624. **  09.02.86  - use registers in wns_savres() for speed (MSC).
  625. **
  626. **  The following changes were incorporated in the 08.30.86 release:
  627. **
  628. **  08.28.86  - wn_gets was delclared as (char *) but returning
  629. **              (void).  Corrected to return (char *).
  630. **
  631. **  08.27.86  - wns_wtext() was not correctly handling borderless
  632. **              windows. Corrected.
  633. **
  634. **            - wn_printf() was not correctly handing cases such as:
  635. **              wn_printf(wn,"%s %d %f %d\n", "text", 2, 2.2, 5);
  636. **              The window boss now supports a complete implementation
  637. **              of printf formatting under Microsoft C Version 4.00.
  638. **              All other compilers and versions support an INTEGER only
  639. **              wn_printf.  This will be corrected in a future release.
  640. **
  641. **  08.16.86  - Added wn_gets(). Get string in window with validation.
  642. **
  643. **  The following chages were incorporated in the 06.02.86 release.
  644. **
  645. **  06.02.86  - v_smode was using bh instead of ah. Corrected.
  646. **              Thanks to Rob Rainwater!!
  647. **
  648. **  05.26.86  - Added wn_natrib. Set new window attribute NOW!
  649. **
  650. **  05.25.86  - Corrected a potential problem with a couple of the routies
  651. **              in MSVLIB.ASM. Registers SI & DI were being used but not
  652. **              being saved. This "may" cause spurious probles with "C"
  653. **              programs that use register variables.  Microsoft C 3.0 only.
  654. **
  655. **            - wn_titla was not calling wns_fixc. Corrected.
  656. **
  657. **  05.24.86  - Added wn_titla. write window title with attributes.
  658. **
  659. **  05.10.86  - wn_putsa was not calling wns_fixc.  This caused problems
  660. **              when CGA was in mode bw80 but putsa was called with a
  661. **              valid color atrib.
  662. **
  663. **  The following changes were incororated in the 05.08.86 release.
  664. **
  665. **  05.07.86  - Additions for Microsoft "C" version 3.0
  666. **
  667. **  05.05.86  - wn_printf fix for lattice version 3.0.
  668. **
  669. **  04.25.86  - Added support for handling backspace, delete, & BELL
  670. **              characters correctly (wns_wtext).
  671. **
  672. **              Incorporated v_wtty in vlib.asm.
  673. **
  674. **  Initial Release..
  675. **
  676. **  01.24.86  - Initial release with a bit of a false start thanks to
  677. **              Microsoft's Lib.
  678. **
  679. */
  680.  
  681.